using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Workflows.Designer
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Application.Run(new Main());
            Main mainForm = new Main();
            if (args.Length > 0)
            {
                string wfDesignFilePath = args[0];
                mainForm.Show();
                mainForm.OpenWfDesign(wfDesignFilePath);
                Application.Run(mainForm);
            }
            else
            {
                Application.Run(mainForm);
            }
        }
    }
}